package com.maktoub.project.utils;

import java.lang.reflect.Field;
import java.util.HashSet;
import java.util.Set;

public class ReflexUtils {
    public static Set<String> getClassFieldNames(Class<?> clazz) {
        Set<String> fieldNames = new HashSet<>();
        Field[] fields = clazz.getDeclaredFields();
        for (Field field : fields) {
            fieldNames.add(field.getName());
        }
        return fieldNames;
    }
}
